home *** CD-ROM | disk | FTP | other *** search
- package org.flintparticles.zones
- {
- import flash.geom.Point;
-
- public class PointZone implements Zone
- {
-
-
- private var _point:Point;
-
- public function PointZone(param1:Point)
- {
- super();
- _point = param1;
- }
-
- public function set point(param1:Point) : void
- {
- _point = param1;
- }
-
- public function getArea() : Number
- {
- return 1;
- }
-
- public function get point() : Point
- {
- return _point;
- }
-
- public function getLocation() : Point
- {
- return _point.clone();
- }
-
- public function contains(param1:Number, param2:Number) : Boolean
- {
- return _point.x == param1 && _point.y == param2;
- }
- }
- }
-